package com.wnxy.sddfp.system;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

public class App {
    public static void main(String[] args) {
        PasswordEncoder passwordEncoder = new BCryptPasswordEncoder();
        String pwd = "$2a$10$zC6VIEvUTVx5fqJs.90fG.g5iil.qzjn924Zr7ZepGDFCsFJIboCe";
        System.out.println("pwd.length() = " + pwd.length());

        boolean matches = passwordEncoder.matches("123456", pwd);
        System.out.println("matches = " + matches);
    }
}
